#pragma once
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
typedef int HeapStyle;
typedef struct Heap
{
	HeapStyle* a;
	int  size;
	int capacity;
}HP;
void  HeapPrint(HP* php);
void HeapInit(HP* php);
void HeapDestroy(HP* php);
void HeapPush(HP* php, HeapStyle x);
void HeapPop(HP* php);
void AdjustDown(HeapStyle* a, int n,int parent);
void AdjustUp(HeapStyle* a, int child);
HeapStyle HeapTop(HP* php);
void  swap(int* a, int* b);

bool Heapempty(HP* php);